﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="RoleAdd.aspx.cs" Inherits="PurviewManage_RoleAdd" Title="Untitled Page" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="title">
        &nbsp;<asp:Label ID="lblPageType" runat="server" Text="添加角色"></asp:Label></div>
    <table class="add_table" cellspacing="1" cellpadding="3" align="center">
        <tr>
            <td align="right">
                <label for="username">
                    <b style="color: Red">*</b></label><asp:Label ID="lblRoleName" runat="server" Text="角色名称："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtRoleName" runat="server" Width="172px" MaxLength="50" 
                    ValidationGroup="role"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqvalRoleName" runat="server" ControlToValidate="txtRoleName"
                    ErrorMessage="名称不能为空" Display="None" ValidationGroup="role"></asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <tr>
            <td align="right">
                <label for="username">
                    <b style="color: Red">*</b></label><asp:Label ID="lblRoleCode" runat="server" Text="角色编码："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtRoleCode" runat="server" Width="172px" MaxLength="50" 
                    ValidationGroup="role"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRoleCode"
                    ErrorMessage="名称不能为空" Display="None" ValidationGroup="role"></asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <tr>
            <td align="right">
                角色描述：
            </td>
            <td>
                <asp:TextBox ID="txtRoleDes" runat="server" TextMode="MultiLine" Width="172px" 
                    MaxLength="255" Height="91px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                角色权限：
            </td>
            <td>
               <asp:CheckBoxList ID="chkOperationList" runat="server" RepeatColumns="5" RepeatDirection="Horizontal"
                         RepeatLayout="Table">
                    </asp:CheckBoxList>
            </td>
        </tr>
    </table>
    <table class="add_table" cellspacing="1" cellpadding="3">
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" CssClass="btn" ValidationGroup="role" />
               &nbsp; <asp:Button ID="btnReset" runat="server" Text="返回" class="adminbtn" CssClass="btn" OnClick="btnReset_Click" />

            </td>
        </tr>
    </table>      
</asp:Content>

